import RequestUtils from '@/utils/RequestUtils'

export default {

  /**
   * 分页
   * @param params
   * @returns {AxiosPromise}
   */
  page(params = {}, page) {
    return RequestUtils({
      url: `/tms/carrier/driverSearch/${page.current}/${page.pageSize}`,
      method: 'POST',
      data: {
        ...params
      }
    })
  },

  /**
   * 查询
   * @param params
   * @returns {AxiosPromise}
   */
  list(params = {}) {
    return RequestUtils({
      url: `/tms/carrier/driverFindAll`,
      method: 'POST',
      data: {
        ...params
      }
    })
  }

}
